//===============================================================================
// Microsoft patterns & practices Enterprise Library Contribution
// Resource Application Block
//===============================================================================

using System;
using System.Management.Instrumentation;
using Microsoft.Practices.EnterpriseLibrary.Common.Configuration.Manageability;

namespace EntLibContrib.Resource.Configuration.Manageability
{
	/// <summary>
	/// Represents the general configuration information for the Resource Application Block.
	/// </summary>
	/// <seealso cref="EntLibContrib.Resource.Configuration.ResourceManagerSettings"/>
	/// <seealso cref="ConfigurationSetting"/>
	[InstrumentationClass(InstrumentationType.Instance)]
	public class ResourceBlockSetting : ConfigurationSetting
	{
		#region Fields
		private String defaultResourceManager;
		#endregion

		#region Properties
		/// <summary>
		/// Gets the name of the default resource manager for the represented configuration section.
		/// </summary>
		/// <value>The default resource manager.</value>
		/// <seealso cref="EntLibContrib.Resource.Configuration.ResourceManagerSettings.DefaultResourceManager">ResourceManagerSettings.DefaultResourceManager</seealso>
		public String DefaultResourceManager
		{
			get { return defaultResourceManager; }
			internal set { defaultResourceManager = value; }
		}
		#endregion

		#region Construction
		/// <summary>
		/// Initializes a new instance of the <see cref="ResourceBlockSetting"/> class.
		/// </summary>
		/// <param name="defaultResourceManager">The default resource manager.</param>
		internal ResourceBlockSetting(String defaultResourceManager)
		{
			this.defaultResourceManager = defaultResourceManager;
		}
		#endregion
	}
}
